import base64
import json
import sys
import os
sys.path.append(os.getcwd())

a={'UID':123,'Token':'hasaki','TaskID':'123','FileUEL':'127.0.0.1','ModuelType':2,'PolicyStatusURL':'hahahaha','PolicyDataURL':'qweqwe'}
# json序列化
data_str=json.dumps(a)
json_e=base64.b64encode(data_str.encode('utf8'))
#base_data=sys.argv[1]                   # 传进来的数
json_b=base64.b64decode(json_e)
# 序列化
my_get=json.loads(json_b)
print(my_get)
print(type(my_get))      # dict